// import api from '~/mock/api';
import { createRequest } from './request';

// const { url, proxyPattern, secondUrl } = getServiceEnvConfig(import.meta.env);
const { VITE_SERVICE_ENV_URL } = import.meta.env;
const url = VITE_SERVICE_ENV_URL;
const proxyPattern = '';
const secondUrl = '';

export const request = createRequest({ baseURL: url });
export const testRequest = createRequest({ baseURL: proxyPattern });
export const mockRequest = createRequest({ baseURL: '/mock' });

// 第二路径
export const secondRequest = createRequest({ baseURL: secondUrl });
